package com.xnew.bean;

import com.xnew.utils.ConvertEntityUtil;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class AuditMemberInfo implements Serializable {
    private String id;

    private String staffId; //人员ID

    private String projectId; //项目ID

    private String orgId;

    private String memberRole;  //成员角色

    private String projectNum; //项目数量

    private String admissionTime; //入场时间

    private String auditLocation; //审计地点

    private String dayCount; //在场天数

    private String auditFee;  //审计费用

    private String trafficFee; //交通费

    private String hotelFee; //住宿费

    private String problemCount; // 问题数量

    private String reportCount; // 审计报告数量

    private String reportProblemCount; // 审计报告问题数量

    private List<AuditKeyPointInfo> auditKeyPointInfo;  //要点名称

    private List<AuditMemberProject> projectList; //资产项目

    private String projectNameList; //资产项目名称

    private List<Object>  auditMemberKeyPointList;


    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId == null ? null : staffId.trim();
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId == null ? null : projectId.trim();
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getMemberRole() {
        return memberRole;
    }

    public void setMemberRole(String memberRole) {
        this.memberRole = memberRole == null ? null : memberRole.trim();
    }

    public String getProjectNum() {
        return projectNum;
    }

    public void setProjectNum(String projectNum) {
        this.projectNum = projectNum == null ? null : projectNum.trim();
    }

    public String getAdmissionTime() {
        return admissionTime;
    }

    public void setAdmissionTime(String admissionTime) {
        this.admissionTime = admissionTime;
    }

    public String getAuditLocation() {
        return auditLocation;
    }

    public void setAuditLocation(String auditLocation) {
        this.auditLocation = auditLocation;
    }

    public String getDayCount() {
        return dayCount;
    }

    public void setDayCount(String dayCount) {
        this.dayCount = dayCount;
    }

    public String getAuditFee() {
        return auditFee;
    }

    public void setAuditFee(String auditFee) {
        this.auditFee = auditFee;
    }

    public String getTrafficFee() {
        return trafficFee;
    }

    public void setTrafficFee(String trafficFee) {
        this.trafficFee = trafficFee;
    }

    public String getHotelFee() {
        return hotelFee;
    }

    public void setHotelFee(String hotelFee) {
        this.hotelFee = hotelFee;
    }

    public String getProblemCount() {
        return problemCount;
    }

    public void setProblemCount(String problemCount) {
        this.problemCount = problemCount;
    }

    public String getReportCount() {
        return reportCount;
    }

    public void setReportCount(String reportCount) {
        this.reportCount = reportCount;
    }

    public String getReportProblemCount() {
        return reportProblemCount;
    }

    public void setReportProblemCount(String reportProblemCount) {
        this.reportProblemCount = reportProblemCount;
    }

    public List<AuditKeyPointInfo> getAuditKeyPointInfo() {

        return auditKeyPointInfo;
    }

    public void setAuditKeyPointInfo(List<AuditKeyPointInfo> auditKeyPointInfo) {
        this.auditKeyPointInfo = auditKeyPointInfo;
    }

    public List<AuditMemberProject> getProjectList() {
        return projectList;
    }

    public void setProjectList(List<AuditMemberProject> projectList) {
        this.projectList = projectList;
    }

    public String getProjectNameList() {
        return projectNameList;
    }

    public void setProjectNameList(String projectNameList) {
        this.projectNameList = projectNameList;
    }

    public List<Object> getAuditMemberKeyPointList() {
        if(auditMemberKeyPointList !=null && auditMemberKeyPointList.size() >0){
            try {
                auditMemberKeyPointList = ConvertEntityUtil.convertListData(auditMemberKeyPointList );
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return auditMemberKeyPointList;
    }

    private Map<String, Object> dictNameResult = new HashMap<String, Object>();

    public Map<String, Object> getDictNameResult() {
        return dictNameResult;
    }

    public void setDictNameResult(Map<String, Object> dictNameResult) {
        this.dictNameResult = dictNameResult;
    }

    public String[] buildIncludeField(){
        return new String[]{"staffId","memberRole","orgId"};
    }

    public String[] buildIncludeType(){
        return new String[]{"USER_NAME","AUDIT_USER_ROLE","ORG_NAME"};
    }

}